//
//  SINATecManagerQuerScoreItemTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/8.
//  Copyright © 2018年  androidlongs. All rights reserved.
//   成绩查询  ITEM 

#import "SINATecManagerQuerScoreItemTableViewCell.h"


@interface SINATecManagerQuerScoreItemTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *classNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *subNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *peopleNumLabel;

@end
@implementation SINATecManagerQuerScoreItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(SINASubClassModel *)model{
    _model = model;
    if (self.itemClickBlock) {
        [[SINAUiviewClickLiserner alloc]viewClickFunction:self.contentView andWithBlick:^(UIView *view) {
            self.itemClickBlock(self.model);
        }];
    }
    if (self.pageFlag==0) {
        self.classNameLabel.text=model.name;
        self.subNameLabel.text=model.subjectname;
        self.peopleNumLabel.text=[NSString stringWithFormat:@"%@人",model.students];
    }else if (self.pageFlag==1){
        self.classNameLabel.text=model.name;
        self.subNameLabel.text=model.classifyname;
        self.peopleNumLabel.text=[NSString stringWithFormat:@"%@人",model.students];
    }
   
}

@end
